//
//  SYFormCollectionView.h
//  SY_Merchant
//
//  Created by apple on 2019/1/5.
//  Copyright © 2019 zl_zmx. All rights reserved.
//

//#import "SYBaseViewController.h"
#import <UIKit/UIKit.h>


NS_ASSUME_NONNULL_BEGIN


/**  设备屏幕size*/
#define kScreen_Size           [[UIScreen mainScreen] bounds].size

@class SYFormCollectionView;
@protocol SYFormCollectionViewDelegate <NSObject>



@end

@protocol SYFormColllectionViewDataSource <NSObject>
- (NSUInteger )SYNumberOfSectionsInSYFormCollectionView:(SYFormCollectionView *)formCollectionView;
- (NSUInteger )SYFormCollectionView:(SYFormCollectionView *)formCollectionView numberOfItemsInSection:(NSInteger)section;

- (CGFloat )SYLeftViewHeightFormCollectionView:(SYFormCollectionView *)formCollectionView;
- (CGFloat )SYTopViewWidthFormCollectionView:(SYFormCollectionView *)formCollectionView;

- (CGSize )SYContentViewHeightFormCollectionViewLeftView:(SYFormCollectionView *)formCollectionView heightForItemAtIndexPath:(NSIndexPath *)indexPath;
//The upper left corner
- (CGSize )SYUpperLeftCorner;

- (UICollectionViewCell *)SYTopViewFormCollectionView:(SYFormCollectionView *)formCollectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath;
- (void)registerClass:(nullable Class)cellClass forCellWithReuseIdentifier:(NSString *)identifier;

- (UICollectionViewCell *)SYLeftViewFormCollectionView:(SYFormCollectionView *)formCollectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath;

- (UICollectionViewCell *)SYContentViewFormCollectionView:(SYFormCollectionView *)formCollectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath;


- (UIView *)SYCustomUpperLeftCornerView;

@end


@interface SYFormCollectionView : UIViewController
/**      **/
@property(nonatomic, assign) id<SYFormCollectionViewDelegate>delegate;
/**      **/
@property(nonatomic, assign) id<SYFormColllectionViewDataSource>dataSource ;

/***  刷新数据  */
- (void)formReloadData;



@end

NS_ASSUME_NONNULL_END
